#container {
  position: relative;
  overflow: auto;
  flex: 1;
  border: 1px solid #dcdee2;
  border-radius: 4px;
}

.grid {
  background-image: -webkit-linear-gradient(90deg, rgba(235, 235, 235, 1) 5%, rgba(0, 0, 0, 0) 5%);
  background-image: -moz-linear-gradient(90deg, rgba(235, 235, 235, 1) 5%, rgba(0, 0, 0, 0) 5%);
  background-image: -o-linear-gradient(90deg, rgba(235, 235, 235, 1) 5%, rgba(0, 0, 0, 0) 5%);
  background-image: -webkit-gradient(linear, 0 100%, 0 0, color-stop(0.05, rgba(235, 235, 235, 1)), color-stop(0.05, rgba(0, 0, 0, 0)));
  background-image: linear-gradient(90deg, rgba(235, 235, 235, 1) 5%, rgba(0, 0, 0, 0) 5%), linear-gradient(rgba(235, 235, 235, 1) 5%, rgba(0, 0, 0, 0) 5%);
  background-size: 1rem 1rem;
}


.legend {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-block;
}

.node-active {
  box-shadow: 0 0 0 2px #19be6b, 0 0 5px 4px rgba(0, 0, 0, 0.2);

  .node-header {
    background-color: #19be6b;
  }
}

.drop-hover {
  i{
    color:#ed4014;
  }
}

.node-container {
  display: flow;
  flex-direction: column;
  width: 180px;
  min-height: 60px;
  font-size: 14px;
  border-radius: 4px;
  text-align: left;
  overflow: hidden;
  position: absolute;
  box-sizing: border-box;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.3);
  background-color: #ffffff;
  cursor: move;

  &:hover {
    box-shadow: 0 0 0 2px #2db7f5, 0 0 5px 4px rgba(0, 0, 0, 0.2);
  }

  &.task {

    .node-header {
      background-color: #ff66ff;

    }
  }

  &.start {
    .node-header {
      background-color: #2d8cf0;
    }
  }

  &.end {
    .node-header {
      background-color: #808695;
    }
  }
}

.fixed-tool {
  position: fixed;

  .node-box {
    margin: 8px 0 0 10px;
  }
}

.fixed-legend {
  float: right;
  margin-right: 145px;
  padding-top: 8px;
  text-align: center;

  .legend-wrapper {
    position: fixed;

    .legend-item {
      display: inline-block;
      margin-left: 10px;

      .item1 {
        background-color: #19be6b;
        border: 1px solid #19be6b;
      }

      .item2 {
        background-color: #ffffff;
        border: 1px solid #808695;
      }
    }
  }
}

.node-header {
  width: 100%;
  height: 24px;
  line-height: 24px;
  color: #fff;
  position: relative;
  box-sizing: border-box;

  i {
    margin-left: 8px;
    margin-right: 8px;
    cursor: crosshair;
  }
  span{
    margin-left: 8px;
    margin-right: 8px;
    cursor: pointer;
  }
}

.node-body {
  position: relative;
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
  height: 36px;
  line-height: 36px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
